package org.farng.mp3.filename;

/**
 * This class is a delimiter which remains a part of the token, located at the
 * start.
 *
 * @author Eric Farng
 * @version $Revision: 1.1.1.1 $
 */
public class FilenameStartWordDelimiter extends FilenameDelimiter {
    /**
     * Creates a new FilenameStartWordDelimiter object.
     */
    public FilenameStartWordDelimiter() {}

    public FilenameStartWordDelimiter(FilenameStartWordDelimiter delimiter) {
        super(delimiter);
    }

    /**
     * Reconstruct the filename that is represented by this composite.
     *
     * @return the filename that is represented by this composite.
     */
    public String composeFilename() {
        String filename = "";

        if (beforeComposite != null) {
            filename += (beforeComposite.composeFilename() + " ");
        }

        if (afterComposite != null) {
            filename += afterComposite.composeFilename();
        }

        return filename.trim();
    }
}